const MonitorParams = (mongoose) => {
  const { Schema, model } = mongoose
  const monitorSchema = new Schema({
    appID: {
      type: String,
    },
    pageID: {
      type: String,
    },
    timestamp: {
      type: String,
    },
    ua: {
      type: String,
    },
    url: {
      type: String,
    },
    type: {
      type: String,
    },
  })
  const Monitor = model('admion_monitor_manage', monitorSchema)
  return {
    Monitor,
  }
}

module.exports = MonitorParams
